/*
 * Project: Sudoku Explainer
 * Copyright (C) 2006-2007 Nicolas Juillerat
 * 
 * Project: Sudoku Hint Engine for Android
 * Copyright (C) 2010-2013 Emanuel Moecklin
 * 
 * Available under the terms of the Lesser General Public License (LGPL)
 */
package com.onegravity.sudoku.solver.checks;

import android.net.Uri;

import com.onegravity.sudoku.solver.HintResource;
import com.onegravity.sudoku.solver.core.FinalHint;
import com.onegravity.sudoku.solver.core.Rule;
import com.onegravity.sudoku.solver.data.Cell;
import com.onegravity.sudoku.solver.data.Grid;

public class TooFewGivensWarning extends WarningMessage implements Rule, FinalHint {

	public TooFewGivensWarning(Grid grid, Cell cell, HintResource hintResource, int threshold, int nrOfGiven) {
		super(grid, cell, hintResource, threshold, nrOfGiven);
	}

	private static final long serialVersionUID = -4698787095380102249L;

    public Grid apply() {
    	return grid;
    }

	@Override
	public String getName() {
		return getClass().getSimpleName();
	}

    @Override
    public Uri getLink() {
		return HintResource.TOO_FEW_GIVENS.getUrl();
    }

	@Override
	public double getDifficulty() {
		return 0;
	}

    @Override
	public int getNrOfSteps() {
        return 1;
    }

}